package cn.nexd.map.location.collector.core;

import android.content.Context;
import android.hardware.Sensor;

import cn.nexd.map.location.collector.CollectorConfig;
import cn.nexd.map.location.collector.listener.SensorCollectorResultListener;


/**
 * GravitySensorCollector create by codingfish at 15/5/4
 * TODO:
 *
 * @Version V1.0
 */
class GravitySensorCollectorTask extends SensorCollectorTask {

    public GravitySensorCollectorTask(Context context, SensorCollectorResultListener sensorCollectorResultListener, CollectorConfig collectorConfig) {
        super(context, sensorCollectorResultListener, collectorConfig);
    }

    public GravitySensorCollectorTask(Context context, CollectorConfig collectorConfig) {
        super(context, null, collectorConfig);
    }

    public GravitySensorCollectorTask(Context context, SensorCollectorResultListener sensorCollectorResultListener) {
        super(context, sensorCollectorResultListener, null);
    }

    @Override
    protected int getSensorType() {
        return Sensor.TYPE_GRAVITY;
    }
}
